package psn.zjk.career.interview.algorithm.tree;

/**
 * 前序遍历模板
 * @author zhangjk
 * @CREATE_TIME 2021/2/19 14:40
 */
public class PreOrderTemplate {

    public static void preOrder(TreeNode tree) {
        if (tree == null)
            return;
        System.out.printf(tree.val + "");
//        for (int i = 0; i <n分叉 ; i++) {
//            preOrder("第i个子节点");
//        }
    }
}